package com.zhc.dejingapi.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhc.dejingapi.entity.EquipmentEntity;
import com.zhc.dejingapi.mapper.EquipmentMapper;
import com.zhc.dejingapi.mapper.RealtimeMapper;
import com.zhc.dejingapi.service.EquipmentService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhc
 * @since 2024-07-27
 */
@Slf4j
@Service
public class EquipmentServiceImpl extends ServiceImpl<EquipmentMapper, EquipmentEntity> implements EquipmentService {

    //@Resource
    private final EquipmentMapper equipmentMapper;
    //@Resource
    private final RealtimeMapper realtimeMapper;

    private final RedisTemplate<String,Object> redisTemplate;


    public EquipmentServiceImpl(EquipmentMapper equipmentMapper,
                                RealtimeMapper realtimeMapper,
                                @Qualifier("redisTemplateWin")RedisTemplate<String, Object> redisTemplate1) {
        this.redisTemplate = redisTemplate1;
        this.equipmentMapper = equipmentMapper;
        this.realtimeMapper = realtimeMapper;

    }
}
